import request from '@/utils/request'

// 查询住院患者信息列表
export function listReceiverecord(query) {
  return request({
    url: '/be/receiverecord/list',
    method: 'get',
    params: query
  })
}

// 查询住院患者信息详细
export function getReceiverecord(opdoctorreceiverecordid) {
  return request({
    url: '/be/receiverecord/' + opdoctorreceiverecordid,
    method: 'get'
  })
}

// 新增住院患者信息
export function addReceiverecord(data) {
  return request({
    url: '/be/receiverecord',
    method: 'post',
    data: data
  })
}

// 修改住院患者信息
export function updateReceiverecord(data) {
  return request({
    url: '/be/receiverecord/',
    method: 'put',
    data: data
  })
}

// 删除住院患者信息
export function delReceiverecord(opdoctorreceiverecordid) {
  return request({
    url: '/be/receiverecord/' + opdoctorreceiverecordid,
    method: 'delete'
  })
}
